package com.wn.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Drug {
    private Integer id;

    private String no;

    @NotBlank(message = "药品名不能为空")
    private String name;

    @NotNull(message = "药品单价不能为空")
    private BigDecimal price;

    @NotNull(message = "药品数量不能为空")
    private Integer stock;

    private Integer status;

    private Integer isDeleted;

}